package java_9_9;

import java.util.ArrayList;
import java.util.LinkedList;
public class Test_1 {
    public static void main(String[] args) {
        ArrayList a=new ArrayList();
        long start=System.nanoTime();
        for (int i=0;i<=100000;i++){
            a.add("中");
        }
        long end=System.nanoTime();
        LinkedList l=new LinkedList();
       for (int i=0;i<=100000;i++){
           a.add("中");
       }
       long end1=System.nanoTime();
        System.out.println("ArrayList:"+(end-start)+"纳秒");
        System.out.println("LinkeList"+(end1-end)+"纳秒");
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>删除100个随机数>>>>>>>>>>>>>>>>>>>");
        double r = Math.random();
    }
}
